import { http } from '@/http/http'

/** 地址列表 */
export function getAddressAPI(uid: number) {
  return http.get('/user_address_list', { uid })
}

/** 添加地址 */
export function addAddressAPI(data: any) {
  return http.post('/add_user_address', data)
}

/** 更新地址 */
export function updateAddressAPI(data: any) {
  return http.post('/update_user_address', data)
}

/** 更新地址 */
export function delAddressAPI(id: number) {
  return http.post('/del_user_address', { id })
}
